package com.springboot.study.tests.annotation;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author: guodong
 * @Date: 2021/7/24 10:34
 * @Version: 1.0
 * @Description:
 */
@Data
public class Student {

    @NotNull(message = "请求来源不能为空")
    @EnumValidateAnnotation2(enumClass = FromEnum.class, message = "上报来源错误", method = "")
    String from;

    @MyAnnotation(age = 26)
    public void test() {
    }

}
